home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
omswitch.zip
/
SWITCH.C
next >
Wrap
Text File
|
1993-05-01
|
394b
|
20 lines
/*
** Display/change switch character
*/
char switchar();
main(argc,argv)
int argc;
char *argv[]; {
register char c;
if(argc<2)
printf("Switch character is now '%c'\n",switchar(0));
else if((c=*argv[1])<=' ')
printf("Illegal new switch character '%c'\n",c);
else {
printf("Switch character was '%c', ",switchar(0));
printf("is now '%c'\n",switchar(c));
}
}